import BaseTemplate from "@/components/layout/BaseTemplate.vue";

export default [
  {
    path: "/sales",
    name: "salesTemplate",
    component: BaseTemplate,
    children: [
      {
        path: "sales-demand-flow",
        name: "salesDemandFlow",
        component: () =>
          import(
            /* webpackChunkName: "salesDemandFlow" */ "@/views/sales/SalesDemandOrderReceipt.vue"
          ),
        meta: {
          title: "【01】销售需求汇总单",
        },
      },
      {
        path: "review-order-flow",
        name: "reviewOrderFlow",
        component: () =>
          import(
            /* webpackChunkName: "reviewOrderFlow" */ "@/views/sales/ReviewOrderOrderReceipt.vue"
          ),
        meta: {
          title: "【02】评审订单维护",
        },
      },
      {
        path: "approval-order-of-sales-department-flow",
        name: "ApprovalOrderOfSalesDepartmentFlow",
        component: () =>
          import(
            /* webpackChunkName: "ApprovalOrderOfSalesDepartmentFlow" */ "@/views/sales/ApprovalOrderOfSalesDepartmentOrderReceipt.vue"
          ),
        meta: {
          title: "【03】评审订单销售部审批",
        },
      },
      {
        path: "formal-order-flow",
        name: "FormalOrderFlow",
        component: () =>
          import(
            /* webpackChunkName: "FormalOrderFlow" */ "@/views/sales/FormalOrderOrderReceipt.vue"
          ),
        meta: {
          title: "【09】正式订单维护",
        },
      },
      {
        path: "invoice-flow",
        name: "InvoiceFlow",
        component: () =>
          import(
            /* webpackChunkName: "InvoiceFlow" */ "@/views/sales/InvoiceOrderReceipt.vue"
          ),
        meta: {
          title: "【17】发货单",
        },
      },
      {
        path: "arrival-and-warehousing-flow",
        name: "ArrivalAndWarehousingFlow",
        component: () =>
          import(
            /* webpackChunkName: "ArrivalAndWarehousingFlow" */ "@/views/sales/ArrivalAndWarehousingOrderReceipt.vue"
          ),
        meta: {
          title: "【18】到货签收入库单",
        },
      },
      {
        path: "invoice-issuing-record-flow",
        name: "InvoiceIssuingRecordFlow",
        component: () =>
          import(
            /* webpackChunkName: "InvoiceIssuingRecordFlow" */ "@/views/sales/InvoiceIssuingRecordOrderReceipt.vue"
          ),
        meta: {
          title: "【19】发票开具记录单",
        },
      },
      {
        path: "customer",
        name: "customer",
        component: () =>
          import(
            /* webpackChunkName: "customer" */ "@/views/sales/Customer.vue"
          ),
        meta: {
          title: "客户维护",
        },
      },
    ],
  },
];
